package crx_field_method_04;

import java.util.Scanner;

public class userTest {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入用户名");
        String username=scanner.next();
        System.out.println("请输入您的密码");
       String password=scanner.next();
       User user =new User();
       boolean res=user.login(username,password);
       if (res){
           System.out.println("登录成功"+username);
       }else {
           System.out.println("登陆失败，用户名或密码错误");
       }
        }
    }

